package edu.sctu.zhengsenwen.month201505.day20150506;

/**
* Created by user15 on 2015/5/6.
        */
public class FactorialOfEight {
    public static void main(String[] args) {

        System.out.println("The factorial of 8 is: "+fac(9));
    }

    public static int fac(int n){
        if(n==1){
            return 1;
        } else{
            return n*fac(n-1);
        }
    }
}
